{layout name="common@common_layout/template" /}
<section class="scrollable padder">
    <div class="m-b-md">
        <h3 class="m-b-none">增加员工</h3>
    </div>
    <section class="panel panel-default">
        <div class="panel-body">
            <iframe name="ifr" style="display: none"></iframe>
            <form class="form-horizontal" target="ifr" action="{:url('public_module/index/commit_add_edit')}"
                  method="post">
                <div class="form-group">
                    <label class="col-sm-12 content_center fontsize16_title">
                        基本信息
                    </label>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">姓名</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="name" placeholder="请输入员工姓名">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">英文姓名</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="name_en" placeholder="请输入员工英文姓名">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">身份证号码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工身份证号码" name="card" id="card">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">私人电话号码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工私人电话号码" name="private_tel">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group" style="clear: both;">
                    <label class="col-sm-2 control-label">性别</label>
                    <div class="col-sm-10">
                        <div class="radio i-checks" style="float: left;">
                            <label>
                                <input type="radio" name="sex" value="1" checked>
                                <i></i>
                                男
                            </label>
                        </div>
                        <div class="radio i-checks" style="float: left; margin-left: 20px;">
                            <label>
                                <input type="radio" name="sex" value="0">
                                <i></i>
                                女
                            </label>
                        </div>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-id-1">出生日期</label>
                    <div class="col-sm-10">
                        <input class="Wdate" type="text" onClick="WdatePicker()" name="birthday">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group" style="clear: both;">
                    <label class="col-sm-2 control-label">婚姻状况</label>
                    <div class="col-sm-10">
                        <div class="radio i-checks" style="float: left;">
                            <label>
                                <input type="radio" name="is_marry" value="0" checked>
                                <i></i>
                                未婚
                            </label>
                        </div>
                        <div class="radio i-checks" style="float: left; margin-left: 20px;">
                            <label>
                                <input type="radio" name="is_marry" value="1">
                                <i></i>
                                已婚
                            </label>
                        </div>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">员工籍贯</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工籍贯" name="native_place">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">现居住地址</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工现居住地址" name="residence">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">学历</label>
                    <div class="col-sm-10">
                        <select name="education_id" class="form-control m-b">
                            {volist name="education_list" id="education" empty="暂时没有数据"}
                            <option {$education.id=="3"?"selected":""} value="{$education.id}">{$education.grade}
                            </option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">学校</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工毕业学院" name="school">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">专业</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工所学专业" name="major">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">紧急联系人</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入紧急联系人姓名" name="emergency_name">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">紧急联系人电话</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入紧急联系人电话号码" name="emergency_phone">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-12 content_center fontsize16_title">
                        职员信息
                    </label>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">账号</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工登录账号" name="account">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">密码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工密码" name="password">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">工作电话号码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工工作电话号码" name="work_tel">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">部门</label>
                    <div class="col-sm-10">
                        <select name="department_id" class="form-control m-b">
                            {volist name='department_list' id='department'}
                            <option {$department.id=="3"?"selected":""} value="{$department.id}">{$department.name}
                            </option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">职位</label>
                    <div class="col-sm-10">
                        <select name="department_position_id" class="form-control m-b">
                            {volist name='departmentposition_list' id='departmentposition'}
                            <option value="{$departmentposition.id}">{$departmentposition.position_name}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">所属权限组</label>
                    <div class="col-sm-10">
                        <select name="permissionsgroup_id" class="form-control m-b">
                            {volist name="permission_list" id="permission" empty="暂时没有数据"}
                            <option {$permission.id=="3"?"selected":""} value="{$permission.id}">
                                {$permission.description}
                            </option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">工资卡号</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工工资卡号" name="salary_card">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">工资卡卡户银行</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工工资卡卡户银行" name="bank_card_account">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">员工工资</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工工资" name="money">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">合同情况</label>
                    <div class="col-sm-10">
                        <textarea name="contract_content" class="form-control" placeholder="请输入员工合同情况"
                                  style="max-width: 100%; height: 34px;"></textarea>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">社保情况</label>
                    <div class="col-sm-10">
                        <textarea name="security_content" class="form-control" placeholder="请输入员工社保情况"
                                  style="max-width: 100%; height: 34px;"></textarea>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">入职时间</label>
                    <div class="col-sm-10">
                        <input class="Wdate" type="text" onClick="WdatePicker()" name="entry_time">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">私人微信</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工私人微信" name="private_wechat">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">工作微信</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工工作微信" name="work_wechat">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">工作微信密码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工工作微信密码" name="work_wechat_password">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">私人QQ</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工私人QQ" name="private_qq">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">工作QQ</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工工作QQ" name="work_qq">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">工作QQ密码</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入员工工作QQ密码" name="work_qq_password">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">家庭情况</label>
                    <div class="col-sm-10">
                        <textarea name="family_situation" class="form-control" placeholder="请输入员工家庭情况"
                                  style="max-width: 100%; height: 34px;"></textarea>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">上传头像</label>
                    <div class="col-sm-10" id="upload_img_wrap">
                        <input type="file" id="file" name="header">
                        <input type="hidden" id="file_val" value="" name="file_val"/>
                        <img src="" width="500" alt="" id="preview">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group" style="margin-bottom: 40px;">
                    <div class="col-sm-5 col-sm-offset-2">
                        <a href="{:url('public_module/index/show_list')}" class="btn btn-default">返回</a>
                        <button style="margin-left: 10px;" type="submit" class="btn btn-primary staff_add">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </section>
</section>
<script src="/static/js/staff/staff.js" type="text/javascript" charset="utf-8"></script>
<script>
    $("#file").on("change", function () {
        uploadFile("file", "{:url('common/base/upload_image')}");
    })

</script>
